package cn.net.yugu.doraemon.springweb.exception;

/**
 * @description:
 * @author: wanghongli
 * @create: 2023-03-09 16:17:27
 */
public class BusinessException extends RuntimeException {
    private final int errCode;

    public BusinessException(int errCode, String errMsg) {
        this(errCode, errMsg, null);
    }

    public BusinessException(int errCode, String errMsg, Throwable cause) {
        super(errMsg, cause);
        this.errCode = errCode;
    }

    public int getErrCode() {
        return errCode;
    }
}
